.class Lcom/waiqin365/base/login/ah;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/base/login/LoginDetailRegisterActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/login/LoginDetailRegisterActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/ah;->a:Lcom/waiqin365/base/login/LoginDetailRegisterActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 3

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/waiqin365/base/login/ah;->a:Lcom/waiqin365/base/login/LoginDetailRegisterActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/LoginDetailRegisterActivity;->dismissProgressDialog()V

    iget-object v0, p0, Lcom/waiqin365/base/login/ah;->a:Lcom/waiqin365/base/login/LoginDetailRegisterActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginDetailRegisterActivity;->c(Lcom/waiqin365/base/login/LoginDetailRegisterActivity;)V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/base/login/b/a/as;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/b/a/as;->b()Z

    move-result v1

    if-eqz v1, :cond_3

    iget-object v1, v0, Lcom/waiqin365/base/login/b/a/as;->c:Ljava/lang/String;

    const-string/jumbo v2, "success"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/base/login/ah;->a:Lcom/waiqin365/base/login/LoginDetailRegisterActivity;

    iget-object v1, v1, Lcom/waiqin365/base/login/LoginDetailRegisterActivity;->a:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/base/login/LoginRegisterSuccessActivity;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    const-string/jumbo v1, "tenantName"

    iget-object v2, p0, Lcom/waiqin365/base/login/ah;->a:Lcom/waiqin365/base/login/LoginDetailRegisterActivity;

    invoke-static {v2}, Lcom/waiqin365/base/login/LoginDetailRegisterActivity;->a(Lcom/waiqin365/base/login/LoginDetailRegisterActivity;)Landroid/widget/EditText;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "tenantId"

    iget-object v2, p0, Lcom/waiqin365/base/login/ah;->a:Lcom/waiqin365/base/login/LoginDetailRegisterActivity;

    invoke-static {v2}, Lcom/waiqin365/base/login/LoginDetailRegisterActivity;->d(Lcom/waiqin365/base/login/LoginDetailRegisterActivity;)Landroid/widget/EditText;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "userId"

    iget-object v2, p0, Lcom/waiqin365/base/login/ah;->a:Lcom/waiqin365/base/login/LoginDetailRegisterActivity;

    invoke-static {v2}, Lcom/waiqin365/base/login/LoginDetailRegisterActivity;->e(Lcom/waiqin365/base/login/LoginDetailRegisterActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "userPass"

    iget-object v2, p0, Lcom/waiqin365/base/login/ah;->a:Lcom/waiqin365/base/login/LoginDetailRegisterActivity;

    invoke-static {v2}, Lcom/waiqin365/base/login/LoginDetailRegisterActivity;->f(Lcom/waiqin365/base/login/LoginDetailRegisterActivity;)Landroid/widget/EditText;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/base/login/ah;->a:Lcom/waiqin365/base/login/LoginDetailRegisterActivity;

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/login/LoginDetailRegisterActivity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/ah;->a:Lcom/waiqin365/base/login/LoginDetailRegisterActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/login/LoginDetailRegisterActivity;->overridePendingTransition(II)V

    goto/16 :goto_0

    :cond_0
    iget-object v0, v0, Lcom/waiqin365/base/login/b/a/as;->d:Ljava/lang/String;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_2

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/base/login/ah;->a:Lcom/waiqin365/base/login/LoginDetailRegisterActivity;

    const v1, 0x7f08013b

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/login/LoginDetailRegisterActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    :cond_2
    iget-object v1, p0, Lcom/waiqin365/base/login/ah;->a:Lcom/waiqin365/base/login/LoginDetailRegisterActivity;

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    :cond_3
    iget-object v1, p0, Lcom/waiqin365/base/login/ah;->a:Lcom/waiqin365/base/login/LoginDetailRegisterActivity;

    iget v0, v0, Lcom/waiqin365/base/login/b/a/as;->b:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0xa
        :pswitch_0
    .end packed-switch
.end method
